export default {
  data() {
    return {
      num: 1
    }
  },
  methods: {
    addNum() {
      this.num++
    },
    setButtonStatus(code) {
      if (this.$store.state.login.userInfo) {
        return this.$store.state.login.userInfo.roles.points.includes(code)
      } else {
        return false
      }
    }
  }
}
